package com.ncucoder.server.util;

import java.sql.Timestamp;

/**
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @since 2019-01-19 14:24
 */
public class DateUtils {

    /**
     *
     * @param time
     * @param n
     * @return
     */
    public static Timestamp addMinutes(Timestamp time, int n){
        time.setTime(time.getTime() + 1000 * 60 * n);
        return time;
    }
}
